// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: +ENUM_CLASS_IN_EXTERNAL_DECLARATION_WARNING
external enum class <!ENUM_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>E<!> {
    X,
    <!EXTERNAL_ENUM_ENTRY_WITH_BODY!>Y {
        fun foo()
    },<!>
    <!EXTERNAL_ENUM_ENTRY_WITH_BODY!>Z {}<!>
}
